083533e5ec8674d9569a39b70486c451f69e3790,source/de/anomic/kelondro/text/IODispatcher.java,IODispatcher,run,#,128

Before Change


            Log.logSevere("IODispatcher", "main run job was interrupted (3)", e);
        } catch (Exception e) {
            e.printStackTrace();
            Log.logSevere("IODispatcher", "main run job failed (4)", e);
        } finally {
            Log.logInfo("IODispatcher", "terminating run job");
            controlQueue = null;

After Change


                        Log.logSevere("IODispatcher", "main run job was interrupted (2)", e);
                        e.printStackTrace();
                    } catch (Exception e) {
                        Log.logSevere("IODispatcher", "main run job had errors (2), dump to " + f + " failed. Input files are " + f1 + " and " + f2, e);
                    	e.printStackTrace();
                    }
                    continue loop;
                }
                
                // check termination
                if (this.terminate) {
                    Log.logInfo("IODispatcher", "catched termination signal");
                    break;
                }

                Log.logSevere("IODispatcher", "main loop in bad state, dumpQueue.size() = " + dumpQueue.size() + ", mergeQueue.size() = " + mergeQueue.size() + ", controlQueue.availablePermits() = " + controlQueue.availablePermits());
                assert false : "this process statt should not be reached"; // this should never happen
            }
            Log.logInfo("IODispatcher", "loop terminated");
        } catch (InterruptedException e) {
            Log.logSevere("IODispatcher", "main run job was interrupted (3)", e);
            e.printStackTrace();
        } catch (Exception e) {
            Log.logSevere("IODispatcher", "main run job failed (4)", e);
            e.printStackTrace();
        } finally {
            Log.logInfo("IODispatcher", "terminating run job");